package com.yanqu.road.entity.maidian;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_u_user_day_online", desc = "玩家每日在线统计")
public class UserDayOnlineData extends DataObject {

    @FieldTypeAnnotation(desc = "用户id", select = true, update = true)
    private long userId;

    @FieldTypeAnnotation(desc = "在线时长（秒）")
    private long online;

    @FieldTypeAnnotation(desc = "登录次数")
    private int loginTimes;

    @FieldTypeAnnotation(desc = "重置时间")
    private long resetTime;


    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if(this.userId != userId) {
            this.userId = userId;
            setUpdateOption();
        }
    }

    public long getOnline() {
        return online;
    }

    public void setOnline(long online) {
        if(this.online != online) {
            this.online = online;
            setUpdateOption();
        }
    }

    public int getLoginTimes() {
        return loginTimes;
    }

    public void setLoginTimes(int loginTimes) {
        if(this.loginTimes != loginTimes) {
            this.loginTimes = loginTimes;
            setUpdateOption();
        }
    }

    public long getResetTime() {
        return resetTime;
    }

    public void setResetTime(long resetTime) {
        if(this.resetTime != resetTime) {
            this.resetTime = resetTime;
            setUpdateOption();
        }
    }
}
